package cn.net.gexing.service.impl;

import java.util.List;

import cn.net.gexing.dao.PersonDAO;
import cn.net.gexing.model.Article;
import cn.net.gexing.service.PersonBiz;


public class PersonBizImpl implements PersonBiz {

	private PersonDAO personDAO;
	
	public void setPersonDAO(PersonDAO personDAO) {
		this.personDAO = personDAO;
	}

	public boolean addPerson(Article person) {
		int flag=this.personDAO.insert(person);
		if(flag>0){
			return true;
		}else{
		return false;
		}
		}

	public Article checkById(int id) {
		Article person=this.personDAO.getPersonById(id);
		return person;
	}

	@Override
	public List<Article> getArticleListByCount(int count) {
		// TODO Auto-generated method stub
		return null;
	}

}
